import {createApp} from 'vue'
import 'vfonts/Lato.css'
import './assets/styles/tailwind.css'
import './assets/styles/global.less'
import AppProvider from './components/Application/index.vue'
import App from './App.vue'
import router, {setupRouter} from './router'
import {createPinia} from 'pinia'

const appProvider = createApp(AppProvider)
appProvider.mount('#appProvider', true)
const app = createApp(App)
app.use(createPinia())
setupRouter(app)

router.isReady().then(() => {
  const meta = document.createElement('meta')
  meta.name = 'naive-ui-style'
  document.head.appendChild(meta)
  app.mount('#app', true)
})
